iq = 22
for i in range(10):
    t = int(input('请猜一下年龄吧'))
    if t > iq:
        print('大了大了')
    elif t < iq:
        print("小了小了")
    else:
        print('猜对了')
        break;
    if i < 10:
        i = i+1
    else:
        break;
    print('猜错了！还有'+str(10-i)+'次机会')
print('游戏结束')
